import Vue from "vue";
import Router from "vue-router";
import Songs from "../views/Songs.vue";
import Song from "../views/Song.vue";

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
        }, {
            path: '/songs/:keyword',
            component: Songs
        }, {
            path: '/song/:id',
            component: Song
        }, {
            path: '*',
            redirect: '/'
        }
    ]
})
